const env = import.meta.env.MODE || 'dev';
const EnvConfig = {
  development: {
    baseApi: 'http://localhost:4000/api',
    mockApi: 'https://www.fastmock.site/mock/315c7f9aa394caa3ad59ab74bce288a8/api',
  },
  test: {
    baseApi: '/test',
    mockApi: 'test.com',
  },
  prod: {
    baseApi: '/prod',
    mockApi: 'aa.prod.com',
  },
};

export default {
  env,
  namespace: 'vite',
  mock: true,
  ...EnvConfig[env],
};
